package com.atguigu.tingshu.dispatch.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class JobTask {
    //  要求每隔5s运行一次 powerJob 任务
    @Scheduled(cron = "0/5 * * * * ?")
    public void testTask(){
        System.out.println("定时任务执行了...");
    }
}
